//
//  ZCAddNewAddressInputCell.h
//  ZCJZ
//
//  Created by sujeking on 2019/2/27.
//  Copyright © 2019年 jeking. All rights reserved.
//

#import <UIKit/UIKit.h>


typedef NS_ENUM(NSUInteger, ZCAddNewAddressInputCellType) {
    ZCAddNewAddressInputCellType_Input,
    ZCAddNewAddressInputCellType_Select,
};

@protocol ZCAddNewAddressInputCellDelegate<NSObject>

@optional
- (void)addNewAddressInputCellInputAction:(NSIndexPath *)indexPath content:(NSString *)content;
- (void)addNewAddressInputCellSelectAction:(NSIndexPath *)indexPath;

@end


@interface ZCAddNewAddressInputCell : UITableViewCell<UITextFieldDelegate>

@property (nonatomic, copy) NSString *keystr;
@property (nonatomic, copy) NSString *valuestr;
@property (nonatomic, copy) NSString *placeholdstr;
@property (assign, nonatomic) BOOL secureTextEntry;
@property (assign, nonatomic) NSInteger length;

@property (assign, nonatomic) ZCAddNewAddressInputCellType type;
@property (nonatomic, strong) NSIndexPath *indexPath;
@property (assign, nonatomic) UIKeyboardType keyboardType;
@property (nonatomic, weak) id<ZCAddNewAddressInputCellDelegate> delegate;

@end

